Function Reference

_GUICtrlMonthCalSetDelta

Sets the scroll rate for a month calendar control.

#Include <GuiMonthCal.au3>
_GUICtrlMonthCalSetDelta($h_monthcal, $i_delta)

 

Parameters

$h_monthcal control id/control hWnd
$i_delta Value representing the number of months to be set as the control's scroll rate.

 

Return Value

Returns an INT value that represents the previous scroll rate.

 

Remarks

$i_delta
    If this value is zero, the month delta is reset to the default,
    which is the number of months displayed in the control.

 

Related

_GUICtrlMonthCalGetDelta

 

Example


#include <GUIConstants.au3>
#include <date.au3>
#include <GuiMonthCal.au3>

opt('MustDeclareVars', 1)

Dim $Date, $Btn_Exit, $Combo, $msg

GUICreate( "Set Delta", 450, 254)

$Date = GUICtrlCreateMonthCal (_NowCalcDate(), 10, 10, 190, 155, $MCS_MULTISELECT)

$Btn_Exit = GUICtrlCreateButton("Exit", 180, 180, 90, 30)

$Combo = GUICtrlCreateCombo("", 220, 10, 100, 21, $CBS_DROPDOWNLIST)
GUICtrlSetData($Combo, "1|2|3|4|5|6|7|8|9|10|11|12", "1")

GUISetState()

While 1
   $msg = GUIGetMsg()
   Select
      Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
         ExitLoop
      Case $msg = $Combo
         _GUICtrlMonthCalSetDelta ($Date, Int(GUICtrlRead($Combo)))
   EndSelect
WEnd